<template>
  <el-select
    v-model="row[col.prop]"
    :disabled="col.disabled && col.disabled()"
    size="mini"
    @change="
      $emit('clickBtn', row, { name: col.type, prop: col.prop })
    "
  >
    <el-option
      v-for="item in col.selectData"
      :key="item.id"
      :value="item.id"
      :label="item.name"
    />
  </el-select>
</template>

<script>
export default {
  name: 'TdSelect',
  components: {},
  props: {
    col: {
      type: Object,
      default: () => {}
    },
    row: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {

    }
  },
  methods: {

  }
}
</script>

<style lang='scss' scoped>

</style>
